#include "kernel/syspub.h"

int main()
{
    char Buf[51]="bankacc|name|123.45|1|";
    char tmpStr[11];

    memset( tmpStr, 0x00, sizeof(tmpStr));
    SubSignString(1, '|', Buf, tmpStr);
    printf("%s\n", tmpStr);
    memset( tmpStr, 0x00, sizeof(tmpStr));
    SubSignString(3, '|', Buf, tmpStr);
    printf("%.2lf\n", atof(tmpStr));

    return 0;
}


